package de.clapp.client.menue;

import java.util.ArrayList;


public class MenueModel
{
    private ArrayList<MenueCardPanel> observerlist;
    
    public MenueModel()
    {
        this.observerlist = new ArrayList<MenueCardPanel>();
    }
    
    public void addObserver(MenueCardPanel view)
    {
        this.observerlist.add(view);
    }
    
    public void neu()
    {
        for (MenueCardPanel view : this.observerlist)
        {
            view.addRow();
        }
    }
    
    public void loeschen()
    {
        for (MenueCardPanel view : this.observerlist)
        {
            view.deleteRow();
        }
    }    
    
    public void checkInput()
    {
        for(MenueCardPanel view : this.observerlist)
        {
            view.checkInput();          
        }
    }
}
